<?php

class Workset_File_Info_Image extends Workset_File_Info
{

    protected $_handlerClass = 'Workset_File_Handler_Image_GD';

	public function getWidth() {
        return $this->getHandler()->getWidth();
	}

	public function getHeight() {
		return $this->getHandler()->getHeight();
	}

    /**
     * @see Workset_File_Info::toArray()
     * @param array $systeminfo
     * @return array
     */
    public function toArray($systeminfo = array()) {
        $info = parent::toArray($systeminfo);

        $info += array(
            'image' => 1,
            'width' => $this->getWidth(),
            'height' => $this->getHeight()
        );    

        return $info;
    }

}

?>